Skip to main content

Presence Entities

These entities are used by the Presence adapter and encapsulate data objects used by Epicenter Presence API.

Presence

The Presence interface describes the online presence of a user within a group or world, including their role, identity, and activity timestamp.

Properties

  • lastUpdated (number): A Unix timestamp (in milliseconds) representing the last time the user's presence was updated.
  • ttlSeconds (number): Time-to-live for the presence record, in seconds. If a user's present is not updated for longer than this value, the user is considered offline.
  • groupRole (enum): The role assigned to the user within the group or world. Possible values are defined by the GROUP_ROLE enum.
  • user (User object): The User object associated with the presence record, containing identity and profile information.